<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"halma.gitee.io","root":"/","scheme":"Pisces","version":"7.7.2","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="做文件服务，一般是用Samba，不过在MacOS系统上链接Samba，就没了MacOS超牛X的感觉。那么我们请出苹果的AFP文件服务。">
<meta property="og:type" content="article">
<meta property="og:title" content="用FreeBSD架设MacOS专用的AFP文件服务器">
<meta property="og:url" content="https://halma.gitee.io/2020/%E7%94%A8FreeBSD%E6%9E%B6%E8%AE%BEMacOS%E4%B8%93%E7%94%A8%E7%9A%84AFP%E6%96%87%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8/index.html">
<meta property="og:site_name" content="左右流之的放逐岛">
<meta property="og:description" content="做文件服务，一般是用Samba，不过在MacOS系统上链接Samba，就没了MacOS超牛X的感觉。那么我们请出苹果的AFP文件服务。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-03-31T07:48:50.000Z">
<meta property="article:modified_time" content="2020-04-18T04:24:08.114Z">
<meta property="article:author" content="左右流之">
<meta property="article:tag" content="Freebsd">
<meta property="article:tag" content="FreeNAS">
<meta property="article:tag" content="AFP">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://halma.gitee.io/2020/%E7%94%A8FreeBSD%E6%9E%B6%E8%AE%BEMacOS%E4%B8%93%E7%94%A8%E7%9A%84AFP%E6%96%87%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>用FreeBSD架设MacOS专用的AFP文件服务器 | 左右流之的放逐岛</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">左右流之的放逐岛</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">黑苹果技术分享</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://halma.gitee.io/2020/%E7%94%A8FreeBSD%E6%9E%B6%E8%AE%BEMacOS%E4%B8%93%E7%94%A8%E7%9A%84AFP%E6%96%87%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="左右流之">
      <meta itemprop="description" content="折腾不需要理由">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="左右流之的放逐岛">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          用FreeBSD架设MacOS专用的AFP文件服务器
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-03-31 15:48:50" itemprop="dateCreated datePublished" datetime="2020-03-31T15:48:50+08:00">2020-03-31</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-04-18 12:24:08" itemprop="dateModified" datetime="2020-04-18T12:24:08+08:00">2020-04-18</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E6%9C%8D%E5%8A%A1%E5%99%A8/" itemprop="url" rel="index"><span itemprop="name">服务器</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
  
  
            <div class="post-description">做文件服务，一般是用Samba，不过在MacOS系统上链接Samba，就没了MacOS超牛X的感觉。那么我们请出苹果的AFP文件服务。</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>做文件服务，一般是用Samba，不过在MacOS系统上链接Samba，就没了MacOS超牛X的感觉。那么我们请出苹果的AFP文件服务。<br>AFP文件服务，在一些成熟的NAS中都会有，比如FreeNAS，群晖那个我不清楚。<br>用FreeNAS系统做文件服务器可以做磁盘阵列，不过我比较喜欢ZFS文件系统做阵列，ZFS比APFS要牛X得多。所以我直接请出FreeNAS他爸爸FreeBSD。<br>FreeBSD堪称坚如磐石的操作系统，这个确实。废话不多说了，下面开始。</p>
<h1 id="一、安装FreeBSD"><a href="#一、安装FreeBSD" class="headerlink" title="一、安装FreeBSD"></a>一、安装FreeBSD</h1><p>系统选用FreeBSD10之后的版本，原生支持ZFS文件系统，安装的时候当然选择ZFS文件系统。<br>因为不是系统安装教程，此处略去五千字，包括ZFS做磁盘阵列……</p>
<h1 id="二、实战AFP"><a href="#二、实战AFP" class="headerlink" title="二、实战AFP"></a>二、实战AFP</h1><p>Freebsd上的AFP文件服务器程序有netatalk，开源免费的。</p>
<ol>
<li><strong>启用root超级账户</strong></li>
</ol>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> su root</span></span><br></pre></td></tr></table></figure>

<ol start="2">
<li><p><strong>安装netatalk</strong><br>我们采用pgk包来安装，posts的安装方式只能叹息了，网路环境太恶略，不知道什么资源会被咔嚓。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> pkg install netatalk</span></span><br></pre></td></tr></table></figure>
<p>就这么简单，安装时会跟着安装上nns_mdns和avahi两个服务。</p>
</li>
<li><p><strong>AFP配置，有点类似Samba的配置。</strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">＃ ee /usr/local/etc/afp.conf</span><br></pre></td></tr></table></figure>
<p>或者</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">＃ vi /usr/local/etc/afp.conf</span><br></pre></td></tr></table></figure></li>
<li><p><strong>可你喜欢什么样的编辑器。我们在afp.conf里写入配置，下面是个例子。</strong></p>
<figure class="highlight dsconfig"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line">;</span><br><span class="line">; <span class="string">Netatalk </span>3.x <span class="string">configuration </span><span class="string">file</span></span><br><span class="line"><span class="string">;</span></span><br><span class="line">[<span class="string">Global]</span>                               // 通用配置                          </span><br><span class="line">; <span class="string">Global </span><span class="string">server </span><span class="string">settings</span></span><br><span class="line"><span class="string"> </span>       <span class="string">uam </span><span class="string">list </span>= <span class="string">uams_dhx.</span><span class="string">so </span><span class="string">uams_dhx2.</span><span class="string">so </span><span class="string">uams_guest.</span><span class="string">so</span></span><br><span class="line"><span class="string"> </span>       <span class="string">guest </span><span class="string">account </span>= <span class="string">user1</span></span><br><span class="line"><span class="string"> </span>       <span class="string">max </span><span class="string">connections </span>= <span class="string">50</span></span><br><span class="line"><span class="string"> </span>       <span class="string">mimic </span><span class="string">model </span>= <span class="string">RackMac</span></span><br><span class="line"><span class="string"> </span>       <span class="string">vol </span><span class="string">dbnest </span>= <span class="string">yes</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">;</span> [<span class="string">Homes]</span></span><br><span class="line"><span class="string">basedir </span><span class="string">regex </span>= /<span class="string">home</span></span><br><span class="line"><span class="string">;</span> [<span class="string">My </span><span class="string">AFP </span><span class="string">Volume]</span></span><br><span class="line">; <span class="string">path </span>= /<span class="string">home</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">[</span><span class="string">afp]</span>                                   </span><br><span class="line">        <span class="string">path </span>= /<span class="string">home </span>                   // <span class="string">AFP文</span>件服务目录设置</span><br><span class="line">        <span class="string">valid </span><span class="string">users </span>= <span class="string">wheel,</span><span class="string">xxx,</span><span class="string">root </span>   // 设置用户或用户组</span><br><span class="line">        <span class="string">rwlist </span>= <span class="string">username </span>              // 以为为文件读写权限等设置</span><br><span class="line">        <span class="string">cnid </span><span class="string">dev </span>= <span class="string">no</span></span><br><span class="line"><span class="string"> </span>       <span class="string">file </span><span class="string">perm </span>= <span class="string">644</span></span><br><span class="line"><span class="string"> </span>       <span class="string">directory </span><span class="string">perm </span>= <span class="string">755</span></span><br><span class="line"><span class="string"> </span>       <span class="string">umask </span>= <span class="string">000</span></span><br><span class="line"><span class="string"> </span>       </span><br><span class="line">[<span class="string">My </span><span class="string">Time </span><span class="string">Machine </span><span class="string">Volume]</span>     // 当然可以用<span class="string">AFP做</span>时间机器的存储单元了</span><br><span class="line"><span class="string">path </span>= /<span class="string">path/</span><span class="string">to/</span><span class="string">backup</span></span><br><span class="line"><span class="string">time </span><span class="string">machine </span>= <span class="string">yes</span></span><br></pre></td></tr></table></figure>
<p>捣鼓过Samba的都能看懂。</p>
</li>
<li><p><strong>设置开机启动AFP文件服务。</strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> ee /etc/rc.conf</span></span><br></pre></td></tr></table></figure>
<p>在里面添加如下内容</p>
<figure class="highlight dsconfig"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">bus_enable=</span><span class="string">"YES"</span></span><br><span class="line"><span class="string">avahi_daemon_enable=</span><span class="string">"YES"</span></span><br><span class="line"><span class="string">avahi_dnsconfd_enable=</span><span class="string">"YES"</span></span><br><span class="line"><span class="string">netatalk_enable=</span><span class="string">"YES"</span></span><br></pre></td></tr></table></figure></li>
<li><p><strong>好像没有6。</strong></p>
</li>
</ol>
<h1 id="三、如果你启用了防火墙，比如是IPFW防火墙，还需要加入如下防火墙规则。"><a href="#三、如果你启用了防火墙，比如是IPFW防火墙，还需要加入如下防火墙规则。" class="headerlink" title="三、如果你启用了防火墙，比如是IPFW防火墙，还需要加入如下防火墙规则。"></a>三、如果你启用了防火墙，比如是IPFW防火墙，还需要加入如下防火墙规则。</h1><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> ipfw add 06000 allow tcp from 10.211.55.0/24  to  me 548,4700          // 改成你自己的内网IP</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> ipfw add 06100 allow tcp from me 548,4700  to 10.211.55.0/24</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> ipfw add 06200 allow udp from 10.211.55.0/24  to  any 5353,12688</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> ipfw add 06300 allow udp from any 5353，12688  to  10.211.55.0/24</span></span><br></pre></td></tr></table></figure>
<p>AFP使用tcp548、udp4700端口，avahi-daem 使用udp 5353 和12688端口。</p>
<h1 id="四、在MacOS上链接APF服务器"><a href="#四、在MacOS上链接APF服务器" class="headerlink" title="四、在MacOS上链接APF服务器"></a>四、在MacOS上链接APF服务器</h1><p>按花键加k键<br>添上你的服务器ip地址，比如：afp://172.16.77.123</p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Freebsd/" rel="tag"># Freebsd</a>
              <a href="/tags/FreeNAS/" rel="tag"># FreeNAS</a>
              <a href="/tags/AFP/" rel="tag"># AFP</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/4738g/" rel="prev" title="Acer 4738G 黑苹果记实">
      <i class="fa fa-chevron-left"></i> Acer 4738G 黑苹果记实
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/2020-4-2/" rel="next" title="Asus z370-p_8700k_Vega56 安装苹果系统攻略">
      Asus z370-p_8700k_Vega56 安装苹果系统攻略 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#一、安装FreeBSD"><span class="nav-number">1.</span> <span class="nav-text">一、安装FreeBSD</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#二、实战AFP"><span class="nav-number">2.</span> <span class="nav-text">二、实战AFP</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#三、如果你启用了防火墙，比如是IPFW防火墙，还需要加入如下防火墙规则。"><span class="nav-number">3.</span> <span class="nav-text">三、如果你启用了防火墙，比如是IPFW防火墙，还需要加入如下防火墙规则。</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#四、在MacOS上链接APF服务器"><span class="nav-number">4.</span> <span class="nav-text">四、在MacOS上链接APF服务器</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="左右流之"
      src="/images/avatar.gif">
  <p class="site-author-name" itemprop="name">左右流之</p>
  <div class="site-description" itemprop="description">折腾不需要理由</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">9</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">11</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://gitee.com/halma/" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;halma&#x2F;" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>Gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:459197097@qq.com" title="E-Mail → mailto:459197097@qq.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2025</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">左右流之</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  













<script>
if (document.querySelectorAll('pre.mermaid').length) {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js', () => {
    mermaid.initialize({
      theme    : 'forest',
      logLevel : 3,
      flowchart: { curve     : 'linear' },
      gantt    : { axisFormat: '%m/%d/%Y' },
      sequence : { actorMargin: 50 }
    });
  }, window.mermaid);
}
</script>


  

  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'pj8AT7zpJyISRPiNehTuH3SM-gzGzoHsz',
      appKey     : 'A1fvdQLU97x0GozkPIR0KHDW',
      placeholder: "说点什么？",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : '' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
